import GrammarsFrame from '../grammarsFrame'

const Object_fromEntries = () => (
  <GrammarsFrame
    data={{
      title: 'Object.fromEntries()',
      desc: (
        <>
          用于把
          <span className="wei">键值对数组</span>
          转换成
          <span className="wei">对象</span>
        </>
      ),
      examples: [
        { label: (<>
          <span className="wei">语法</span>
        </>), file: 'demo1.js'
        },{ label: (<>
          <span className="wei">示例</span>
        </>), file: 'demo2.js'
        },{ label: (<>
          也常与
            <span className='hlcode'>Object.entries()</span>、
            <span className='hlcode'>map()</span>
          搭配使用
        </>), file: 'demo3.js'
        },
      ],
    }}
  />
)

export default Object_fromEntries